'use strict'

import HybridJS from '../core/core'

const $ = HybridJS

/**
 * 调用支付
 * @param obj   微信支付：{ channel:"weixin",partnerId:"",prepayId:"",nonceStr:"",sign:"",ts:"",callback:function(success[true/false],msg[''])}
 *              支付宝支付: { channel:"alipay",orderStr:"",callback:function(success[true/false],msg['']) }
 * @returns {*}
 */
function pay(obj) {
    $.callNative("payment","pay",obj)
}

export default {
    pay
}